/**
 * 
 */

Ext.MemuPanel=Ext.extend(Ext.Panel ,{
	xtype: "panel",
	title: "管理菜单",
	region: 'west',
	collapsible: true,
	autoScroll: true,
    split: true,
	width: 200,
	layout: "accordion",
	id:"menuDiv2",
	//contentEl: "menuDiv",
	initComponent: function(){
		/*this.items=[
			{
				xtype:"treepanel",
				title:"基本管理",
				animate:true,
				enableDD:true,
				containerScroll: true,
				loader: new Ext.tree.TreeLoader({
					
					dataUrl: url + "MenuServlet",
					listeners:{
			            beforeload: function (loader, nodes) {
			            	
			            	loader.baseParams.id = nodes.id;
			            }
					}
				}),
		        root: new Ext.tree.AsyncTreeNode({
		            expanded: true,
		        	id:"root"
		        }),
		        rootVisible: false,
		        listeners: {
		            click: function(n) {
		                Ext.Msg.alert('Navigation Tree Click', 'You clicked: "' + n.attributes.text + '"');
		                
		                Ext.getCmp("tabpanel").add(new Ext.Panel({title: n.attributes.text}));
		            }
		        }
		    },
			{
				xtype:"panel",
				title:"单页管理"
			},
			{
				xtype:"panel",
				title:"新闻管理"
			},
			{
				xtype:"panel",
				title:"案例管理"
			},
			{
				xtype:"panel",
				title:"广告管理"
			},
			{
				xtype:"panel",
				title:"友情链接"
			}
		];*/
		Ext.MemuPanel.superclass.initComponent.call(this);
	}
});